package com.heima.admin;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
        import org.mybatis.spring.annotation.MapperScan;
        import org.springframework.boot.SpringApplication;
        import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;
        import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication()

@MapperScan("com.heima.admin.mapper")
//@ComponentScan("com.heima.knife4j")统一配置`META-INF/spring.factories` 文件：
public class AdminApplication {
    public static void main(String[] args) {
        SpringApplication.run(AdminApplication.class, args);
    }
    /**
     * mybatis-plus分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
